<template>
	<view class="">
	
	        <video id="player" style="width: 100%;" :src="img" controls autoplay="true"></video>
	
	    <view id="buttons">
	      <button id="next" @click="btn()">播放下一个</button>
	    </view></view>
</template>

<script>
	import axios from 'axios'
	import $ from 'jquery'
	export default {
		data() {
			return {
			img:"http://101.34.54.81/ks/video.php"	
			}
		},
		
		methods:{
		btn(){	
		   this.img= 'http://101.34.54.81/ks/video.php?_t=' + Math.round(Math.random()*6362)
		    // player.play();
					       console.log(this.img)
				}
		},
		mounted() {
			
			       
			
			  
		}
	
	}
</script>

<style>
#player{
	width: 750rpx;
	height: 100vh;
}
</style>
